package com.lj.back.manage.scaffold.common.enums;

import com.lj.back.manage.scaffold.common.util.EnumValid;

/**
 * 排序方式
 * @author lv
 * @version 1.0.0
 */
public enum OrderTypeEnum implements EnumValid {

    /**
     * 升序
     */
    ASC("1","asc"),

    /**
     * 降序
     */
    DESC("2","desc")
    ;

    private final String code;

    private final String message;

    OrderTypeEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
